﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hp.Vertica.Migration.SqlServer
{
    class SqlDataType_VarChar : SqlDataTypeAllowMax
    {
        public SqlDataType_VarChar() { }

        public SqlDataType_VarChar(Int32 size) : base(size) { }
        public override int MinSize
        {
            get { return 1; }
        }

        public override int MaxSize
        {
            get { return 8000; }
        }

        public override string Name
        {
            get { return "VARCHAR"; }
        }

        public override Client.Internal.VerticaDataType VerticaDataType
        {
            get { return new Client.Internal.VerticaDataType_VarChar(this.Size); }
        }

        public override System.Data.SqlDbType SystemDataType
        {
            get { return System.Data.SqlDbType.VarChar; }
        }
    }
}
